﻿
namespace NeuralStock.Entities
{    
    public abstract class MacroDataData : ICsvLineParser
    {
        public int? Year { get; set; }
        public int? Month { get; set; }
        public decimal? Value { get; set; }

        public abstract object ParseLine(string line);

        public bool IsValid()
        {
            if (!Year.HasValue
                || !Month.HasValue
                || !Value.HasValue)
            {
                return false;
            }
            return true;
        }
    }
}
